﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class PenTog : MonoBehaviour {

    public Texture penTexture;
    private Color penColor;
    public Image colorImage;
    public int Num;
    public float Size;
    public void SetThisBrushColor(Color color)
    {
        penColor = color;
        colorImage.color = color;
    }
	// Use this for initialization
	void Start () {
        try
        {
            colorImage = ToolUnity.FindGameObject(gameObject, "PenColor").GetComponent<Image>();
        }
        catch (System.Exception)
        {
            colorImage = gameObject.GetComponentInChildren<Image>();
        }
    }
}
